<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <script src="libs/jquery.min.js"></script>
    <script src="app_cfg.js"></script>
</head>
<body>

</body>
<script type="text/javascript">
    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]); return null;
    }
    $(function () {
        var type = getQueryString("type");
        if(type == 1){
            $("title").html("担保交易协议")
        }else if(type == 2){
            $("title").html("付款方式协议")
        }
        $.ajax({
            type: 'get',
            url: BASE_URL+'common/protocol/type/'+type+"?_random="+new Date().getTime(),
            success: function (res) {
                console.log(res);
                if(res.status === 0){
                    $("body").append(res.data.content);
                }
            }
        })
    })
</script>
</html>